﻿using Anke.SHManage.MSSQLDAL.FixedAssetsDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.BLL.FixedAssets
{
    /// <summary>
    /// 固定资产分类BLL层
    /// plq
    /// </summary>
    public class FixedAssetsClassBLL
    {
        /// <summary>
        /// 新增资产分类
        /// </summary>
        /// <param name="PID"></param>
        /// <param name="mName"></param>
        /// <returns></returns>
        public bool SaveAssetsType(string PID, string mName)
        {
            return new FixedAssetsClassDAL().SaveAssetsType(PID, mName);
        }

        /// <summary>
        /// 修改资产分类
        /// </summary>
        /// <param name="MID"></param>
        /// <param name="mName"></param>
        /// <returns></returns>
        public bool EditAssetsType(string MID, string mName)
        {
            return new FixedAssetsClassDAL().EditAssetsType(MID, mName);
        }

        /// <summary>
        /// 禁用资产分类
        /// </summary>
        /// <param name="MID"></param>
        /// <returns></returns>
        public bool DisableAssetsType(string MID)
        {
            return new FixedAssetsClassDAL().DisableAssetsType(MID);
        }

        /// <summary>
        /// 启用资产分类
        /// </summary>
        /// <param name="MID"></param>
        /// <returns></returns>
        public bool EnableAssetsType(string MID)
        {
            return new FixedAssetsClassDAL().EnableAssetsType(MID);
        }
    }
}
